﻿using System;
using System.Windows.Forms;

namespace Koonsoft.Relocate.Winform
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FrmLogin frmLogin = new FrmLogin();

            while ((frmLogin.DialogResult != DialogResult.OK) && (frmLogin.DialogResult != DialogResult.Cancel))
            {
                frmLogin.ShowDialog();
            }

            if (frmLogin.DialogResult == DialogResult.OK)
            {
                frmLogin.Close();
                Application.Run(new FrmMain());
            }            
        }
    }
}